Skip to content

Refactor SparkClient constructors#1318

Merged
sonalgoyal merged 1 commit into
zinggAI:mainfrom
padam-prakash:Issue#1317zfactoryConstructor
Apr 30, 2026
Merged

Refactor SparkClient constructors#1318
sonalgoyal merged 1 commit into
zinggAI:mainfrom
padam-prakash:Issue#1317zfactoryConstructor

Conversation

@padam-prakash
Copy link
Copy Markdown
Contributor

add overloads that accept a zFactoryClassName string. fixes #1317

add overloads that accept a zFactoryClassName string.
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Refactors SparkClient construction to add overloads that accept a zFactoryClassName string, aligning with issue #1317 (factory-based constructors to avoid NPEs) and reducing constructor duplication.

Changes:

  • Refactored existing SparkClient constructors to delegate via this(...) to centralize initialization.
  • Added new SparkClient overloads that accept a zFactoryClassName (with and without an explicit SparkSession).
  • Updated .gitignore to ignore a Python virtual environment directory.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 3 comments.

File Description
spark/client/src/main/java/zingg/spark/client/SparkClient.java Adds zFactory-based constructor overloads and refactors existing constructors to delegate.
.gitignore Ignores /python/venv directory.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread spark/client/src/main/java/zingg/spark/client/SparkClient.java
Comment thread spark/client/src/main/java/zingg/spark/client/SparkClient.java
Comment thread spark/client/src/main/java/zingg/spark/client/SparkClient.java
@sonalgoyal sonalgoyal merged commit d545984 into zinggAI:main Apr 30, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add zfactory-based constructors to OSS SparkClient

3 participants